package com.ourteam.product.api;

import com.ourteam.frame.web.AbstractSearchModel;
import com.ourteam.product.ui.dao.ProductUITableColumnIconDAOQueryBean;
import com.ourteam.product.ui.domain.ProductUITableColumnIconBean;

public class ProductUITableFieldIconSearchModel extends AbstractSearchModel<ProductUITableColumnIconDAOQueryBean> {

	private long tableFieldId;

	public long getTableFieldId() {
		return tableFieldId;
	}

	public void setTableFieldId(long tableFieldId) {
		this.tableFieldId = tableFieldId;
	}

	@Override
	public String getMappedDAOField(String aProperty) {
		return ProductUITableColumnIconBean.getMappedDAOField(aProperty);
	}

	@Override
	protected void doBuildQueryBean(ProductUITableColumnIconDAOQueryBean queryBean) throws Exception {

		ProductUITableColumnIconDAOQueryBean.Criteria criteria = queryBean.createCriteria();

		criteria.andColumnIdEqualTo(tableFieldId);

	}

}
